home *** CD-ROM | disk | FTP | other *** search
- {------------------------------------------------------------------------------}
- {UNREGISTERED VERSION (6/1/95) PLEASE REDISTRIBUTE IN tPACK.ZIP!
- This revision does not contain everything, nor are the exciting
- DataSetReporter and ExtendedMenu[Item] components included.
- Use SWREG#5906 to receive these, icons and a help file for $130.
- You must register when using this code in a business application!
- You'll receive a license to use this code in up to 50 copies of
- any app you write. In turn you will get responsive e-mail
- tech support and enhancements till I run out of registrations
- or suggestions. Meanwhile.. enjoy the code. Bye! I'll make more.
- {(C)'1995 Michael/Ax-Systems, 71560,1754@Compuserve.com}
- {------------------------------------------------------------------------------}
-
- unit ToolProc;
- {application wide tool procedures}
- {used to link to dll's or use/link objects into the current project}
-
- {the idea is to literally centralize calls for well defined stuff here.
- this makes it easier to use bound and unbound code by a compiler switch.}
-
- interface
-
- { Put this comment at the beginning of a line to use the DLL instead: $DEFINE USEDLL}
- {xx $DEFINE USEDLL}
- { Alternatively select Project Options|Directories/Conditionals and specify USEDLL there}
-
- {There is a tiny dpr for tpDLL included.}
-
- {$IFDEF USEDLL}
- uses
- Forms, Shells;
-
- {$ELSE}
- uses
- Forms, TpAbout;
- {$ENDIF}
-
- procedure AboutBox;
-
- implementation
-
- procedure AboutBox;
- begin
- {$IFDEF USEDLL}
- with TDLLShell.Create(Application) do try
- Run('tpDLL','AboutBox');
- finally
- Free; {finally free == delphi !}
- end
- {$ELSE} {use the same code as the invocation in the dll.}
- With TtPackAboutBox.Create(Application) do try
- Execute;
- finally
- Free;
- end;
- {$ENDIF}
- end;
-
-
- end.
-